﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DongFangGuoKai.WMSPlatform.Domain.Models
{
    ///<summary>
    ///出库单明细
    ///</summary>
    [SugarTable("DBO.t_ShippingOrderDetail")]
    public partial class t_ShippingOrderDetail
    {
        public t_ShippingOrderDetail()
        {


        }
        /// <summary>
        /// Desc:主键
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string OrderSN { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? BillType { get; set; }

        /// <summary>
        /// Desc:优先级:默认为0
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? Proirity { get; set; }

        /// <summary>
        /// Desc:状态：0-新建;1-已启动;2-作业中;3-已完成;4-强制完成;5-暂停;6-失效；7-异常
        /// Default:0
        /// Nullable:False
        /// </summary>           
        public int Status { get; set; }

        /// <summary>
        /// Desc:库房编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? WarehouseCode { get; set; }

        /// <summary>
        /// Desc:库房名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? WarehouseName { get; set; }

        /// <summary>
        /// Desc:库区编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? AreaCode { get; set; }

        /// <summary>
        /// Desc:库区名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? AreaName { get; set; }

        /// <summary>
        /// Desc:物料ID
        /// Default:
        /// Nullable:False
        /// </summary>           
        public long MaterialId { get; set; }

        /// <summary>
        /// Desc:物料号，对应公共数据库中的物料主数据表,指定仓位出库的时候物料号允许为空
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialCode { get; set; }

        /// <summary>
        /// Desc:物料名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialName { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialTypeCode { get; set; }

        /// <summary>
        /// Desc:批次号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? BatchNO { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? QualityState { get; set; }

        /// <summary>
        /// Desc:计量单位编号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? UnitId { get; set; }

        /// <summary>
        /// Desc:计量单位名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? UnitName { get; set; }

        /// <summary>
        /// Desc:预期出货数量
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public decimal? QTY { get; set; }

        /// <summary>
        /// Desc:出库站台Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? StationId { get; set; }

        /// <summary>
        /// Desc:预期出库站台或站台组
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? StationName { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ERPCode { get; set; }

        /// <summary>
        /// Desc:包装数量
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public int? PackQTY { get; set; }

        /// <summary>
        /// Desc:已经下架的数量
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public decimal? PickedQTY { get; set; }

        /// <summary>
        /// Desc:已经出库完成的数量
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public decimal? ShippedQTY { get; set; }

        /// <summary>
        /// Desc:订单完成日期
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? FinshDate { get; set; }

        /// <summary>
        /// Desc:单据来源类型：0-手动建单；1-ERP;2-MES;3-SAP
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public int? SourceType { get; set; }

        /// <summary>
        /// Desc:创建用户Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? CreateUserId { get; set; }

        /// <summary>
        /// Desc:创建用户名
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? CreateUserName { get; set; }

        /// <summary>
        /// Desc:创建日期
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// Desc:修改用户ID
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? ModifyUserId { get; set; }

        /// <summary>
        /// Desc:修改用户
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ModifyUserName { get; set; }

        /// <summary>
        /// Desc:修改日期
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? ModifyDate { get; set; }

        /// <summary>
        /// Desc:提交人Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? SubmitUserId { get; set; }

        /// <summary>
        /// Desc:提交人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? SubmitUserName { get; set; }

        /// <summary>
        /// Desc:提交时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? SubmitDate { get; set; }

        /// <summary>
        /// Desc:审核人Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? AuditUserId { get; set; }

        /// <summary>
        /// Desc:审核人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? AuditUserName { get; set; }

        /// <summary>
        /// Desc:审核时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? AuditDate { get; set; }

        /// <summary>
        /// Desc:物料凭证号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MBLNR { get; set; }

        /// <summary>
        /// Desc:物料凭证年度
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MJAHR { get; set; }

        /// <summary>
        /// Desc:物料凭证行项目
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ZEILE { get; set; }

        /// <summary>
        /// Desc:采购订单号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? PurOrderNO { get; set; }

        /// <summary>
        /// Desc:采购订单行号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? PurOrderLineNO { get; set; }

        /// <summary>
        /// Desc:采购订单行项目类型：0-无；1-L外协；2-U转储;3-正常采购
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public int? PurOrderLineType { get; set; }

        /// <summary>
        /// Desc:生产订单号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ProOrderNO { get; set; }

        /// <summary>
        /// Desc:部门编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? DeptCode { get; set; }

        /// <summary>
        /// Desc:部门名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? DeptName { get; set; }

        /// <summary>
        /// Desc:货主Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? OwnerId { get; set; }

        /// <summary>
        /// Desc:货主
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? OwnerName { get; set; }

        /// <summary>
        /// Desc:发货单号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? DisOrderNO { get; set; }

        /// <summary>
        /// Desc:发货单行号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? DisOrderLineNO { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? RefOutVoucherId { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? RefDispatchOrderId { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ContractNO { get; set; }

        /// <summary>
        /// Desc:
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public bool? IsMultPallet { get; set; }

        /// <summary>
        /// Desc:
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public bool? IsSuspend { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? WarehouseId { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public bool? IsOutOrderReview { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public bool? IsOnceOut { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public Guid? OnceOutGroupGUID { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ProduceFactory { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? SupplierName { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? SupplierId { get; set; }

        /// <summary>
        /// Desc:
        /// Default:N''
        /// Nullable:False
        /// </summary>           
        public string OutBoundNo { get; set; }

    }
}
